#include "StdAfx.h"
#include "BoundsCheck.h"

CBoundsCheck::CBoundsCheck(void)
{
	m_rect.x = 0;
	m_rect.y = 0;
	m_rect.w = 0;
	m_rect.h = 0;
}

CBoundsCheck::~CBoundsCheck(void)
{
}
void CBoundsCheck::SetBounds( const SDL_Rect& rect )
{
	m_rect = rect;
}

bool CBoundsCheck::MoveAvailable( int x, int y, int w, int h )
{
	bool bResult = true;
	if( y < 0 )
	{
		bResult = bResult && false;
	}
	if( (y > m_rect.h - h))
	{
		bResult = bResult && false;
	}
	return bResult;
}